import { http } from '@/utils/http'

// 获取我的帖子列表
export function getMyPosts(data) {
    return http({
        url: '/system/forum/my_posts/',
        method: 'GET',
        data: data,
    })
}
// 删除帖子
export function deletePost(id) {
    return http({
        url: `/system/forum/${id}/delete/`,
        method: 'DELETE',
    })
}